package cn.iocoder.yudao.module.mqtt.controller.admin.devicelatestlog.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 数据上传分页 Request VO")
@Data
public class DeviceLatestLogPageReqVO extends PageParam {

    @Schema(description = "设备ID", example = "6888")
    private Long deviceId;

    @Schema(description = "设备名称", example = "王五")
    private String deviceName;

    @Schema(description = "设备唯一码")
    private String deviceKey;

    @Schema(description = "网关ID", example = "11755")
    private String gatewayId;

    @Schema(description = "类型", example = "2")
    private String requestType;

    @Schema(description = "发送包内容")
    private String requestBody;

    @Schema(description = "响应包内容")
    private String responseBody;

    @Schema(description = "上送状态", example = "2")
    private String sendStatus;

    @Schema(description = "上送成功", example = "2")
    private String responseStatus;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;


    private String lisDay;//日产流量
    private String lisAll;//全部流量
    private String lisYear; //年产水量
    private LocalDateTime lisTime; //时间
    private String listMonth; //月产水量

    private String lisSun; //产水流量
    private String lisSunAll;//产水累积量
    private LocalDateTime lisSunTime; //产水时间

}